<template>
  <h1>App</h1>
  <p>{{ $store.state.counter.count }}</p>
  <button @click="$store.dispatch('counter/increment', 1)">+</button>
  <button @click="decrement(1)">-</button>
</template>

<script lang="ts">
import { mapActions } from "vuex";

export default {
  name: "App",
  methods: {
    ...mapActions("counter", ["decrement"]),
  },
};
</script>

<style scoped></style>
